/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.star.common;

/**
 *
 * @author Administrator
 */
public class PostOnHomeData {
    String id;
    String post1;
    String post2;
    String post3;
    String post4;
    String post5;
    String post6;
    String post7;
    String post8;
    String post9;
    String post10;
    String post11;
    String post12;
    String post13;
    String post14;    
    String post15;
    String post16;
    String post17;
    String post18;
    String post19;
    String post20;    
    String lstCateLocal;
    String lstCateInter;
    String author;
    String editor;
    long updated;
    long created;
    
    // contructor for add new
    public PostOnHomeData(String post1, String post2, String post3, String post4, String post5, String post6, 
            String post7, String post8, String post9, String post10, String post11, String post12, String post13, 
            String post14, String post15, String post16, String post17, String post18, String post19, String post20, 
            String lstCateLocal, String lstCateInter, String author){
        this.post1 = post1;
        this.post2 = post2;
        this.post3 = post3;
        this.post4 = post4;
        this.post5 = post5;
        this.post6 = post6;
        this.post7 = post7;
        this.post8 = post8;
        this.post9 = post9;
        this.post10 = post10;
        this.post11 = post11;
        this.post12 = post12;
        this.post13 = post13;
        this.post14 = post14;
        this.post15 = post15;
        this.post16 = post16;
        this.post17 = post17;
        this.post18 = post18;
        this.post19 = post19;
        this.post20 = post20;
        this.lstCateLocal = lstCateLocal;
        this.lstCateInter = lstCateInter;
        this.author = author;
        this.editor = author;
        this.updated = System.currentTimeMillis()/1000L;
        this.created = System.currentTimeMillis()/1000L;
    }
    
    // contructor for edit
    public PostOnHomeData(String id, String post1, String post2, String post3, String post4, String post5, String post6, 
            String post7, String post8, String post9, String post10, String post11, String post12, String post13, 
            String post14, String post15, String post16, String post17, String post18, String post19, String post20, 
            String lstCateLocal, String lstCateInter, String author){
        this.id = id;
        this.post1 = post1;
        this.post2 = post2;
        this.post3 = post3;
        this.post4 = post4;
        this.post5 = post5;
        this.post6 = post6;
        this.post7 = post7;
        this.post8 = post8;
        this.post9 = post9;
        this.post10 = post10;
        this.post11 = post11;
        this.post12 = post12;
        this.post13 = post13;
        this.post14 = post14;
        this.post15 = post15;
        this.post16 = post16;
        this.post17 = post17;
        this.post18 = post18;
        this.post19 = post19;
        this.post20 = post20;
        this.lstCateLocal = lstCateLocal;
        this.lstCateInter = lstCateInter;        
        this.editor = author;
        this.updated = System.currentTimeMillis()/1000L;        
    }
    
    
    public PostOnHomeData(String id, String post1, String post2, String post3, String post4, String post5, String post6, 
            String post7, String post8, String post9, String post10, String post11, String post12, String post13, 
            String post14, String post15, String post16, String post17, String post18, String post19, String post20, 
            String lstCateLocal, String lstCateInter, String author, String editor, long updated, long created){
        this.id = id;
        this.post1 = post1;
        this.post2 = post2;
        this.post3 = post3;
        this.post4 = post4;
        this.post5 = post5;
        this.post6 = post6;
        this.post7 = post7;
        this.post8 = post8;
        this.post9 = post9;
        this.post10 = post10;
        this.post11 = post11;
        this.post12 = post12;
        this.post13 = post13;
        this.post14 = post14;
        this.post15 = post15;
        this.post16 = post16;
        this.post17 = post17;
        this.post18 = post18;
        this.post19 = post19;
        this.post20 = post20;
        this.lstCateLocal = lstCateLocal;
        this.lstCateInter = lstCateInter;
        this.author = author;
        this.editor = editor;
        this.updated = updated;
        this.created = created;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPost1() {
        return post1 != null ? post1 : "";
    }

    public void setPost1(String post1) {
        this.post1 = post1;
    }

    public String getPost2() {
        return post2 != null ? post2 : "";
    }

    public void setPost2(String post2) {
        this.post2 = post2;
    }

    public String getPost3() {
        return post3 != null ? post3 : "";
    }

    public void setPost3(String post3) {
        this.post3 = post3;
    }

    public String getPost4() {
        return post4 != null ? post4 : "";
    }

    public void setPost4(String post4) {
        this.post4 = post4;
    }

    public String getPost5() {
        return post5 != null ? post5 : "";
    }

    public void setPost5(String post5) {
        this.post5 = post5;
    }

    public String getPost6() {
        return post6 != null ? post6 : "";
    }

    public void setPost6(String post6) {
        this.post6 = post6;
    }

    public String getPost7() {
        return post7 != null ? post7 : "";
    }

    public void setPost7(String post7) {
        this.post7 = post7;
    }

    public String getPost8() {
        return post8 != null ? post8 : "";
    }

    public void setPost8(String post8) {
        this.post8 = post8;
    }

    public String getPost9() {
        return post9 != null ? post9 : "";
    }

    public void setPost9(String post9) {
        this.post9 = post9;
    }

    public String getPost10() {
        return post10 != null ? post10 : "";
    }

    public void setPost10(String post10) {
        this.post10 = post10;
    }

    public String getPost11() {
        return post11 != null ? post11 : "";
    }

    public void setPost11(String post11) {
        this.post11 = post11;
    }

    public String getPost12() {
        return post12 != null ? post12 : "";
    }

    public void setPost12(String post12) {
        this.post12 = post12;
    }

    public String getPost13() {
        return post13 != null ? post13 : "";
    }

    public void setPost13(String post13) {
        this.post13 = post13;
    }

    public String getPost14() {
        return post14 != null ? post14 : "";
    }

    public void setPost14(String post14) {
        this.post14 = post14;
    }

    public String getPost15() {
        return post15 != null ? post15 : "";
    }

    public void setPost15(String post15) {
        this.post15 = post15;
    }

    public String getPost16() {
        return post16 != null ? post16 : "";
    }

    public void setPost16(String post16) {
        this.post16 = post16;
    }

    public String getPost17() {
        return post17 != null ? post17 : "";
    }

    public void setPost17(String post17) {
        this.post17 = post17;
    }

    public String getPost18() {
        return post18 != null ? post18 : "";
    }

    public void setPost18(String post18) {
        this.post18 = post18;
    }

    public String getPost19() {
        return post19 != null ? post19 : "";
    }

    public void setPost19(String post19) {
        this.post19 = post19;
    }

    public String getPost20() {
        return post20 != null ? post20 : "";
    }

    public void setPost20(String post20) {
        this.post20 = post20;
    }

    public String getLstCateLocal() {
        return lstCateLocal != null ? lstCateLocal : "";
    }

    public void setLstCateLocal(String lstCateLocal) {
        this.lstCateLocal = lstCateLocal;
    }

    public String getLstCateInter() {
        return lstCateInter != null ? lstCateInter : "";
    }

    public void setLstCateInter(String lstCateInter) {
        this.lstCateInter = lstCateInter;
    }

    public String getAuthor() {
        return author != null ? author : "";
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getEditor() {
        return editor != null ? editor : "";
    }

    public void setEditor(String editor) {
        this.editor = editor;
    }

    public long getUpdated() {
        return updated;
    }

    public void setUpdated(long updated) {
        this.updated = updated;
    }

    public long getCreated() {
        return created;
    }

    public void setCreated(long created) {
        this.created = created;
    }
    
    
    
}
